package com.example.person.service;

import com.example.person.common.JsonPage;
import com.example.person.entity.Person;
import com.example.person.entity.PersonDTO;
import com.example.person.entity.PersonVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author sytsnb@gmail.com
 * @date 2023 2023/3/10 16:37
 */
public interface IPersonService {

    void addNew(PersonDTO personDTO);


    void deleteById(String id);

    void deleteByIds(String[] ids);


    void updateById(String id, PersonDTO personDTO);

    PersonVO getById(String id);

    List<PersonVO> getByIds(String[] ids);


    List<PersonVO> selectList();

    List<PersonVO> selectList(PersonDTO personDTO);

    JsonPage<PersonVO> list(Integer page, Integer pageSize);

    void downloadExcelTemplate(HttpServletResponse response) throws IOException;

    void exportExcel(HttpServletResponse response, String[] ids) throws IOException;

    void uploadExcel(MultipartFile file) throws IOException;
}
